<extend name="./Application/Admin/View/base.html" />
<block name="title"><title><?php echo C(APP_NAME);?>PC端管理</title></block>
<block name="stylesheets">
<link href="__PUBLIC__/assets/css/select2.css" rel="stylesheet">

</block>
<block name="stylecss">
<style type='text/css'>
    table tr td{
        width: 80%;
    }
    table tr th{
        width: 16%;
        text-align: center;
        vertical-align: middle!important;
    }
</style>
</block>
<block name="smallmenu">
<ul class="breadcrumb">
	<li>
		<i class="ace-icon fa fa-home home-icon"></i>
		<a href="{:U('Index/index')}">主页</a>
	</li>
    <li>
		<a href="{:U('Cert/index')}">证书列表</a>
	</li>
	<li class="active">证书详情</li>
</ul><!-- /.breadcrumb -->

<!-- #section:basics/content.searchbox -->
<div class="nav-search" id="nav-search"></div><!-- /.nav-search -->
</block>
<block name="content">
<form action="__CONTROLLER__/cert_edit_action" method='post' id='myformedit' enctype="multipart/form-data">
<input type="hidden" name='certificate_id' value="{$cert_arr.certificate_id}">
<div class="row" style="margin-bottom:7px">
    <div class="col-xs-12"><span class="label label-success "><i class="ace-icon fa fa-user bigger-120"></i> 证书详情</span></div>
</div>
<table class="table table-striped table-bordered table-hover" >
    <tr>
        <th>证书类型</th>
        <td><?php if ($cert_arr['certificate_type'] == 1): ?>
        <span style="color:green">专业等级证书</span>
        <?php elseif ($cert_arr['certificate_type'] == 2): ?>
        <span style="color:blue">迷笛先生资格证书</span>
        <?php endif ?></td>
    </tr>
    <tr>
        <th>证书编号</th>
        <td>{$cert_arr.certificate_num}</td>
    </tr>
    <tr>
        <th>获得者MIDI ID</th>
        <td>{$cert_arr.certificate_user_id}</td>
    </tr>
    <tr>
        <th>获得者姓名</th>
        <td>{$cert_arr.user_name}</td>
    </tr>
    <tr>
        <th>联系电话</th>
        <td>{$cert_arr.user_phone}</td>
    </tr>
    <tr>
        <th>专业</th>
        <td><?php if ($cert_arr['certificate_major_id'] == 1): ?>
            电吉他
        <?php elseif ($cert_arr['certificate_major_id'] == 2): ?>
            爵士鼓
        <?php elseif ($cert_arr['certificate_major_id'] == 3): ?>
            电贝司
        <?php endif ?></td>
    </tr>
    <tr>
        <th>等级</th>
        <td><?php if ($cert_arr['certificate_type'] == 1): ?>
            {$cert_arr.certificate_level}级
        <?php elseif ($cert_arr['certificate_type'] == 2): ?>
            <?php if ($cert_arr['certificate_level'] == 1): ?>
                初级
            <?php elseif ($cert_arr['certificate_level'] == 2): ?>
                中级
            <?php elseif ($cert_arr['certificate_level'] == 3): ?>
                高级
            <?php elseif ($cert_arr['certificate_level'] == 4): ?>
                特级
            <?php endif ?>
        <?php endif ?></td>
    </tr>
    <tr>
        <th>认证日期</th>
        <td>{$cert_arr.certificate_time}</td>
    </tr>
    <tr>
        <td colspan="2"><span class="btn btn-sm" onclick="location.href='{$_SERVER[HTTP_REFERER]}'">返回</span></td>
    </tr>
</table>
</form>
</block>
<block name="scripts">
<script src="__PUBLIC__/assets/js/select2.js"></script>
</block>
<block name="jscript">
<script type="text/javascript">
    $(function(){
        $('#menu_data').addClass('active open');
        $('#menu_cert_list').addClass('active');
    });
</script>
</block>